package com.daoliuhe.scaffold.mapper;

import com.daoliuhe.scaffold.model.Authorities;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface AuthoritiesMapper {
    int deleteByPrimaryKey(BigDecimal id);

    int insert(Authorities record);

    int insertSelective(Authorities record);

    Authorities selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Authorities record);

    int updateByPrimaryKey(Authorities record);
    
    List<Authorities> getPageData(Authorities auth);
    
    int getPageCount(Authorities auth);
    
    Authorities selectByName(String permission);
}